package com.zjitc.dao;

import com.zjitc.pojo.Collect;

import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/5/16 10:50
 * @description:
 */
public interface CollectDao {

  /**
   * 通过uid查找该用户收藏的商品
   * @param uid
   * @return
   */
  List<Collect> findCollectbyuid(String uid);

  /**
   * 添加收藏
   * @param collect
   */
  void addcollect(Collect collect);

  /**
   *取消收藏
   * @param collect
   */
  void delCollect(Collect collect);

  /**
   * 查找收藏
   * @param uid
   * @param pid
   * @return
   */
  Collect findCollect(@Param("uid") String uid,@Param("pid") String pid);
}
